package com.creditease.shield.flow.netty;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public enum SerializeType {
	
	Java(JavaNettyServerChannelInitializer.class);
	
	private final Class<? extends ChannelInitializer<SocketChannel>> serverChannelInitializer;
	
	private SerializeType(final Class<? extends ChannelInitializer<SocketChannel>> serverChannelInitializer) {
		this.serverChannelInitializer = serverChannelInitializer;
	}
	
	public Class<? extends ChannelInitializer<SocketChannel>> getServerChannelInitializer() {
		return serverChannelInitializer;
	}
	
}
